package cn.stalk.compare.map;

import cn.stalk.compare.DataAccessor;

import java.util.Map;

public class MapDataAccessor extends DataAccessor<Map<String, Object>, Object> {

    public MapDataAccessor(String name) {
        super(name);
    }
    
    public MapDataAccessor(String name, boolean blankToNull, boolean trim, String arraySeparator, boolean arrayUnique) {
        super(name, blankToNull, trim, arraySeparator, arrayUnique);
    }

    @Override
    public Object apply(Map<String, Object> t) {
        return t.get(name);
    }

}
